package com.hh.message.service;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hh.message.bean.SysMessage;
import com.hh.system.service.impl.BaseService;

@Service
public class SysMessageService extends BaseService<SysMessage> {

	@Transactional
	public void deleteReadData() {
		dao.deleteEntity(SysMessage.class, "isRead", 1);
	}

	public void updateRead(String id) {
		dao.updateProperty(SysMessage.class, id, "isRead", 1);
	}
}
